import request from '@/router/axios';

export const getList = (params) => {
  return request({
    url: '/api/blade-craft/alarm/config/page',
    method: 'get',
    params
  })
}

export const alarmConfigSave = (data) => {
  return request({
    url: '/api/blade-craft/alarm/config/save',
    method: 'post',
    data
  })
}

export const alarmConfigUpdate = (data) => {
  return request({
    url: '/api/blade-craft/alarm/config/update',
    method: 'post',
    data
  })
}

export const alarmConfigDelete = (data) => {
  return request({
    url: '/api/blade-craft/alarm/config/remove?ids=' + data.ids,
    method: 'post'
  })
}
export const getDetail = (params) => {
  return request({
    url: '/api/blade-craft/alarm/config/detail',
    method: 'get',
    params
  })
}
